<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>城市信息添加</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="/ringspace-web/manager/css/font.css">
<link rel="stylesheet" href="/ringspace-web/manager/css/xadmin.css">
<script type="text/javascript" src="/ringspace-web/manager/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/ringspace-web/manager/lib/layui/layui.js"
	charset="utf-8"></script>
<script type="text/javascript" src="/ringspace-web/manager/js/xadmin.js"></script>
</head>

<body>
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a href="">运营总部</a> <a href="">城市管理</a>
			<a> <cite>城市添加</cite></a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			href="javascript:location.replace(location.href);" title="刷新"> <i
			class="layui-icon" style="line-height: 30px">ဂ</i></a>
	</div>

	<div class="x-body">
		<form action ="/ringspace-web/city/insertCity" class="layui-form">
			<div class="layui-form-item">
				<label for="cityId" class="layui-form-label"> <span
					class="x-red">*</span>城市ID
				</label>
				<div class="layui-input-inline">
					<input type="text" id="cityId" name="cityId" required=""
						lay-verify="required" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					<span class="x-red">*</span>由0~9和a~z组成的5位编号
				</div>
			</div>
			<div class="layui-form-item">
				<label for="cityName" class="layui-form-label"> <span
					class="x-red">*</span>城市名称
				</label>
				<div class="layui-input-inline">
					<input type="text" name="cityName" required=""
						lay-verify="cityName" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					<span class="x-red">*</span>请输入城市的行政名称
				</div>
			</div>
			<div class="layui-form-item">
				<label for="person" class="layui-form-label"> <span
					class="x-red">*</span>联系人
				</label>
				<div class="layui-input-inline">
					<input type="text" name="cityPerson" required=""
						lay-verify="person" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					<span class="x-red">*</span>请输入真实姓名
				</div>
			</div>
			<div class="layui-form-item">
				<label for="number" class="layui-form-label"> <span
					class="x-red">*</span>联系方式
				</label>
				<div class="layui-input-inline">
					<input type="text" id="number" name="cityNumber" required=""
						lay-verify="number" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					<span class="x-red">*</span>请输入固定电话/手机号
				</div>
			</div>
			<div class="layui-form-item">
				<label for="province" class="layui-form-label"> <span
					class="x-red">*</span>所属省份
				</label>
				<div class="layui-input-inline">
					<input type="text" id="province" name="cityProvince" required=""
						lay-verify="province" autocomplete="off" class="layui-input">
				</div>
				<div class="layui-form-mid layui-word-aux">
					<span class="x-red">*</span>请输入省份行政全称
				</div>
			</div>
			
			
			<div class="layui-form-item">
				<label for="L_repass" class="layui-form-label"> </label>
				<button class="layui-btn" lay-filter="add" lay-submit="">
					添加</button>
				<button id="closeIframe" class="layui-btn" lay-submit="">
					取消</button>
			</div>
		</form>
	</div>
	<script>
		//关闭iframe
		
		//注意：parent 是 JS 自带的全局对象，可用于操作父页面
		var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
		$('#closeIframe').click(function() {
			parent.layer.close(index);
		});
		
	</script>
	<!-- <script>
		layui.use([ 'form', 'layer' ], function() {
			$ = layui.jquery;
			var form = layui.form(), layer = layui.layer;

			//监听提交
			form.on('submit(add)', function(data) {
				console.log(data);
				//发异步，把数据提交给php
				layer.alert("添加成功", {
					icon : 6
					time : 1000
				}, function() {
					// 获得frame索引
					var index = parent.layer.getFrameIndex(window.name);
					//关闭当前frame
					parent.layer.close(index);
				});
				return false;
			});

		});
	</script> -->
	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</body>

</html>